var albumnames = [];
albumnames['private'] = 'Prive';
albumnames['friend'] = 'Alleen vrienden';
albumnames['friends_of_friends'] = 'Vrienden van vrienden';
albumnames['public'] = 'Hyvers';
albumnames['superpublic'] = 'Iedereen';

var methods = [
	'users.getLoggedin', 
	'media.getUploadToken',
	'media.get', 
	'albums.getByUser', 
	'albums.addMedia',
	'media.update',
	'users.updateMedia'
];

var hyves_api_key = '';
var hyves_api_secret = '';
	
var parseQueryString = function (qs) {
	var params = {};
	var urlqs = qs.split('?');
	var parts = urlqs[1].split('&');

	for (var i = 0; i < parts.length; i++) {
		var keyvalue = parts[i].split('=');
		params[keyvalue[0]] = unescape(keyvalue[1]);
	}
	return params;
}